package com.reyco1.services.youtube
{
	public class YoutubeVideoData
	{
		protected var _title:String;
		protected var _published:String;
		protected var _rating:Number;
		protected var _description:String;
		protected var _keywords:String;
		protected var _category:String;
		protected var _thumbnail:String;
		protected var _duration:Number;
		protected var _url:String;
		protected var _id:String;
		
		public function YoutubeVideoData()
		{
			super();
		}

		public function setUrlFromAtomFeed(value:String):void
		{
			_url = value;
			_id = _url.split("/v/")[1].split("?")[0];
		}
		
		public function get url():String
		{
			return _url;
		}

		public function set url(value:String):void
		{
			_url = value;
		}

		public function get duration():Number
		{
			return _duration;
		}

		public function set duration(value:Number):void
		{
			_duration = value;
		}

		public function get thumbnail():String
		{
			return _thumbnail;
		}

		public function set thumbnail(value:String):void
		{
			_thumbnail = value;
		}

		public function get category():String
		{
			return _category;
		}

		public function set category(value:String):void
		{
			_category = value;
		}

		public function get keywords():String
		{
			return _keywords;
		}

		public function set keywords(value:String):void
		{
			_keywords = value;
		}

		public function get description():String
		{
			return _description;
		}

		public function set description(value:String):void
		{
			_description = value;
		}

		public function get rating():Number
		{
			return _rating;
		}

		public function set rating(value:Number):void
		{
			_rating = value;
		}

		public function get published():String
		{
			return _published;
		}

		public function set published(value:String):void
		{
			_published = value;
		}

		public function get title():String
		{
			return _title;
		}

		public function set title(value:String):void
		{
			_title = value;
		}

		public function get id():String
		{
			return _id;
		}

		public function set id(value:String):void
		{
			_id = value;
		}


	}
}